package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_OperateAccountRunning", catalog="Id")
public class TcwOperateAccountRunning extends BaseEntity<TcwOperateAccountRunning> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="TransferId", nameJava="transferId", typeDataBase="bigint")
	private Long transferId;
	@YsField(nameDataBase="Vgsbm", nameJava="vgsbm", typeDataBase="varchar")
	private String vgsbm;
	@YsField(nameDataBase="ChangeAmount", nameJava="changeAmount", typeDataBase="decimal")
	private BigDecimal changeAmount;
	@YsField(nameDataBase="ChangeType", nameJava="changeType", typeDataBase="tinyint")
	private Integer changeType;
	@YsField(nameDataBase="AmountLeft", nameJava="amountLeft", typeDataBase="decimal")
	private BigDecimal amountLeft;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwOperateAccountRunning setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getTransferId() {
		return transferId;
	}
	public TcwOperateAccountRunning setTransferId(Long transferId) {
		this.transferId = transferId;
		return this;
	}
	public String getVgsbm() {
		return vgsbm;
	}
	public TcwOperateAccountRunning setVgsbm(String vgsbm) {
		this.vgsbm = vgsbm;
		return this;
	}
	public BigDecimal getChangeAmount() {
		return changeAmount;
	}
	public TcwOperateAccountRunning setChangeAmount(BigDecimal changeAmount) {
		this.changeAmount = changeAmount;
		return this;
	}
	public Integer getChangeType() {
		return changeType;
	}
	public TcwOperateAccountRunning setChangeType(Integer changeType) {
		this.changeType = changeType;
		return this;
	}
	public BigDecimal getAmountLeft() {
		return amountLeft;
	}
	public TcwOperateAccountRunning setAmountLeft(BigDecimal amountLeft) {
		this.amountLeft = amountLeft;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwOperateAccountRunning setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwOperateAccountRunning setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwOperateAccountRunning setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwOperateAccountRunning tcwOperateAccountRunning(
		Long transferId,
		String vgsbm,
		BigDecimal changeAmount,
		Integer changeType,
		BigDecimal amountLeft,
		Integer status
			) {
		TcwOperateAccountRunning entity = new TcwOperateAccountRunning();
		entity.setTransferId(transferId);
		entity.setVgsbm(vgsbm);
		entity.setChangeAmount(changeAmount);
		entity.setChangeType(changeType);
		entity.setAmountLeft(amountLeft);
		entity.setStatus(status);
		return entity;
	}
}